package 算法.beasStudy;


import Excle.GenerateExcelFile.MerchantManageConditionBO;

import java.util.List;
import java.util.Objects;

/**
 * @author yangjicong
 * @date 2022/8/16
 */
public class BasePractice {


    public static void main(String[] args) {


            String cellphone="1558545854444444";
        System.out.println("cellphone = " + cellphone.length());
        System.out.println( cellphone.length() - 6);
            String pwd = cellphone.substring(cellphone.length() - 6);
            System.out.println(pwd);
        //int[] more = {1,2,3,4,5,6,7};
        //lessonOne(more,8);

        MerchantManageConditionBO merchantManageConditionBO= new MerchantManageConditionBO();

        System.out.println("merchantManageConditionBO = " + Objects.isNull(merchantManageConditionBO));


    }


    public static void lessonOne(int[] args,int target) {
        for (int i = 0; i < args.length; i++) {

            for (int j = i+1; j < args.length; j++) {
                if (target == args[i] + args[j]) {
                    System.out.println("下标1 = " + i+"  下标2 = "+j);
                }
            }
        }
    }

    public static void lessonOne(List l1, List l2) {

        int l1Size = l1.size();
        int l2Size = l2.size();
        while (0 != l1Size || 0 != l2Size) {

        }
    }

}
